<div id="da-sidebar">

	<!-- Navigation Toggle for < 480px -->
	<div id="da-sidebar-toggle"></div>
				
	<!-- Main Navigation -->
	<div id="da-main-nav" class="btn-container">
		<ul>
			<?php if(LEVEL!="sekretariat" && LEVEL!="barangbukti" ) { ?>
			<li<?php if(!defined('PAGE')) { echo ' class="active"'; } ?>>
				<a href="beranda.php">
					<span class="da-nav-icon">
						<i class="icon-home"></i>
					</span>
					Beranda
				</a>
			</li>
			<?php } if(LEVEL=="superadmin" || LEVEL=="admin" || LEVEL=="kasipidum" || LEVEL=="jaksa" || LEVEL=="pratut" || LEVEL=="penuntutan"|| LEVEL=="sekretariat"  ) { ?>
			<li<?php if(defined('PAGE') && PAGE=='Perkara') { echo ' class="active"'; } ?>>
				<a href="perkara.php">
					<span class="da-nav-icon">
						<i class="icon-notes-2"></i>
					</span>
					Perkara
				</a>
			</li>
			<?php } if(LEVEL=="superadmin" || LEVEL=="admin" || LEVEL=="kasipidum") { ?>
			<li<?php if(defined('PAGE') && PAGE=='Aktifitas Jaksa') { echo ' class="active"'; } ?>>
				<a href="jaksa.aktifitas.php">
					<span class="da-nav-icon">
						<i class="icon-notes-2"></i>
					</span>
					Aktifitas Jaksa
				</a>
			</li>
			<?php } if(LEVEL=="superadmin" || LEVEL=="admin") { ?>
			<li<?php if(defined('PAGE') && PAGE=='Pegawai') { echo ' class="active"'; } ?>>
				<a href="pegawai.php">
					<span class="da-nav-count"><?php echo jumlah_data("pegawai")?></span>
					<span class="da-nav-icon">
						<i class="icon-parents"></i>
					</span>
					Pegawai
				</a>
			</li>
			<?php } if(LEVEL=="superadmin" || LEVEL=="admin" || LEVEL=="kasipidum" || LEVEL=="jaksa" || LEVEL=="penuntutan" ) { ?>
			<!--<li<?php if(defined('PAGE') && PAGE=='Tahanan') { echo ' class="active"'; } ?>>
				<a href="tahanan.php">
					<span class="da-nav-count"><?php echo jumlah_data("tahanan")?></span>
					<span class="da-nav-icon">
						<i class="icon-bank"></i>
					</span>
					Tahanan
				</a>
			</li>-->
			<?php } if(LEVEL=="superadmin" || LEVEL=="admin" || LEVEL=="kasipidum" || LEVEL=="jaksa" || LEVEL=="pratut" || LEVEL=="penuntutan" ) { ?>
			<li<?php if(defined('PAGE') && PAGE=='Tersangka') { echo ' class="active"'; } ?>>
				<a href="tersangka.php">
					<span class="da-nav-count"><?php echo jumlah_data("tersangka")?></span>
					<span class="da-nav-icon">
						<i class="icon-group"></i>
					</span>
					Tersangka
				</a>
			</li>
			<?php } if(LEVEL=="superadmin" || LEVEL=="barangbukti" || LEVEL=="jaksa") { ?>
			<li<?php if(defined('PAGE') && PAGE=='Barang Bukti') { echo ' class="active"'; } ?>>
				<a href="barangbukti.php">
					<span class="da-nav-count"><?php echo jumlah_data("bb")?></span>
					<span class="da-nav-icon">
						<i class="icon-suitcase"></i>
					</span>
					Barang Bukti
				</a>
			</li>
			<?php } if(LEVEL=="superadmin" || LEVEL=="admin" || LEVEL=="kasipidum") { ?>
			<li<?php if(defined('PAGE') && PAGE=='Laporan') { echo ' class="active"'; } ?>>
				<a href="laporan.php">
					<span class="da-nav-icon">
						<i class="icon-charts"></i>
					</span>
					Laporan
				</a>
			</li>
			<?php } if(ID==0) { ?>
			<li<?php if(defined('PAGE') && PAGE=='Agenda') { echo ' class="active"'; } ?>>
				<a href="agenda.php">
					<span class="da-nav-icon">
						<i class="icon-calendar"></i>
					</span>
					Agenda
				</a>
			</li>
			<?php } if(LEVEL!="sekretariat" ) { ?>
			<li<?php if(defined('PAGE') && PAGE=='Pemberitahuan') { echo ' class="active"'; } ?>>
				<a href="pemberitahuan.php">
					<span class="da-nav-count"><?php echo (LEVEL=="superadmin" || LEVEL=="admin" ) ? jumlah_info_all(0) : jumlah_info(ID_PEGAWAI)?></span>
					<span class="da-nav-icon">
						<i class="icon-message-new"></i>
					</span>
					Pemberitahuan
				</a>
			</li>
			<?php } if(LEVEL=="superadmin" || LEVEL=="admin" ) { ?>
			<li<?php if(defined('PAGE') && PAGE=='Reset') { echo ' class="active"'; } ?>>
				<a href="resetpasword.php">
					<span class="da-nav-count"><?php echo jumlah_user();?></span>
					<span class="da-nav-icon">
						<i class="icon-circle-exclamation-mark"></i>
					</span>
					Reset Password
				</a>
			</li>
			<?php } if(LEVEL=="superadmin" || LEVEL=="admin" ) { ?>
			<li<?php if(defined('PAGE') && PAGE=='Pengaturan') { echo ' class="active"'; } ?>>
				<a href="pengaturan.php">
					<span class="da-nav-icon">
						<i class="icon-settings"></i>
					</span>
					Pengaturan
				</a>
			</li>
			<?php } ?>
		</ul>
	</div>
					
</div>
